package com.qfedu.dao;

import com.qfedu.pojo.Loan;
import com.qfedu.pojo.MyLoan;
import com.qfedu.pojo.MyProduct;
import com.qfedu.pojo.Product;

import java.math.BigDecimal;
import java.sql.Connection;
import java.util.List;

public interface LoanDao {


    List<Loan> findAllLoan();

    List<MyLoan> findMyLoan(String idcode);

    Loan findLoanById(int id);
//
    void addLoan(String idcode, int pid, BigDecimal pnum,int back,String pname,int loan_f);
//
//    MyProduct findMyProductByOnly(int id);
//
//    int deleteMyProductById(Connection connection, Integer id);
//
//    int updateMyProductById(Connection connection, Integer id, int leftNum);
}
